module.exports = {
    assetsDir: 'teacher',
    publicPath: process.env.NODE_ENV === 'production' ?
        'https://cdn.hterobot.com/vue/' : '/',
    pages: {
        teacher: {
            entry: 'src/teacher/main.js',
            template: 'public/teacher.html',
            filename: 'teacher.html',
        },
        wordliulan: {
            entry: 'src/wordliulan/main.js',
            template: 'public/wordliulan.html',
            filename: 'wordliulan.html',
        },
        teachervideo: {
            entry: 'src/teachervideo/main.js',
            template: 'public/teachervideo.html',
            filename: 'teachervideo.html',
        }
    },

    devServer: {
        proxy: {
            '/': {
                // 目标 API 地址
                // target: 'http://47.105.92.46',
                // target: 'http://47.105.145.225:8080/',
                // target: 'http://127.0.0.1:7001',
                // target: 'http://www.hterobot.com/',
                // target: 'http://localhost:7001/',
                target: 'http://node.hterobot.com/',
                // 如果要代理 websockets
                ws: false,
                // 将主机标头的原点更改为目标URL
                changeOrigin: true
            }
        }
    }
}